﻿<usr:UserControlBase x:Class="WPF.TestEditor.Controls.TestStepEdit"             
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
            xmlns:usr="clr-namespace:WPF.TestEditor.Controls" 
             mc:Ignorable="d" 
             d:DesignHeight="30" d:DesignWidth="500" Style="{DynamicResource testStepEditor}" >
    <Border BorderThickness="1" CornerRadius="10">     

        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="auto"/>
                <ColumnDefinition Width="auto"/>
                <ColumnDefinition Width=".3*" MinWidth="200"/>
                <ColumnDefinition Width="5"/>
                <ColumnDefinition Width=".5*"/>
                <ColumnDefinition Width="auto"/>
                <ColumnDefinition Width="auto"/>
            </Grid.ColumnDefinitions>
            <TextBlock x:Name="ltrInfo" Grid.Column="0" Margin="5" Foreground="{DynamicResource AccentColorBrush}" FontSize="14pt" FontWeight="Bold" HorizontalAlignment="Right" VerticalAlignment="Center"/>
            <Button Content="+" Click="Add_Click" Grid.Column="1" Margin="2 2 3 2" Style="{DynamicResource ChromelessButtonStyle}" FontSize="14pt"/>
            <Grid Grid.Column="2" Margin="2">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" MinWidth="100" />
                    <ColumnDefinition Width="5"/>
                    <ColumnDefinition Width="*"  MinWidth="100"/>
                </Grid.ColumnDefinitions>
                <ComboBox x:Name="cmbMainAction" Grid.Column="0" SelectionChanged="cmbMainAction_SelectionChanged" Style="{DynamicResource MetroComboBox}" />
                <ComboBox x:Name="cmbSubAction" Grid.Column="2" SelectionChanged="cmbSubAction_SelectionChanged" Style="{DynamicResource MetroComboBox}"/>
            </Grid>
            <Grid Grid.Column="4" Margin="2">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="5"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <usr:TestDataConstantEditor  x:Name="txtLocator" Grid.Column="0" DefaultText="Locator..." ToolTip="element locator" />
                <usr:TestDataConstantEditor  x:Name="txtData" Grid.Column="2" DefaultText="Data..." ToolTip="Data"/>
            </Grid>
            <Button Content="" Click="Remove_Click" Grid.Column="5" Margin="3 2 3 2" FontFamily="Marlett"  Style="{DynamicResource ChromelessButtonStyle}" Foreground="Red"/>
            <StackPanel Orientation="Vertical" Margin="2" Grid.Column="6">
                <Button Content="" Click="Up_Click"   FontFamily="Marlett" Style="{DynamicResource ChromelessButtonStyle}"/>
                <Button Content="" Click="Down_Click" FontFamily="Marlett" Style="{DynamicResource ChromelessButtonStyle}"/>
            </StackPanel>
        </Grid>
    </Border>
</usr:UserControlBase>
